//
//  NetworkSharedManager.h
//  yiwangMall
//
//  Created by Mac on 16/1/7.
//  Copyright © 2016年 lc. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>

@interface NetworkSharedManager : AFHTTPSessionManager
+ (NetworkSharedManager *)sharedManager;

+(void)postWithUrl:(NSString *)url andParameters:(NSDictionary *)parameters andImageData:(NSData *)imageData Name:(NSString *)name progressValue:(void (^)(double)) progress_block success:(void (^)(id))success_block failure:(void (^)(id))failure_blcok;

+(void)postWithUrl:(NSString *) url andParameters:(NSDictionary *) parameters progressValue:(void (^)(double)) progress_block success:(void (^)(id)) success_block failure:(void (^)(id)) failure_blcok;

+(void)getWithUrl:(NSString *) url andParameters:(NSDictionary *) parameters progressValue:(void (^)(double)) progress_block success:(void (^)(id)) success_block failure:(void (^)(id)) failure_blcok;
@end
